<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box100 {
        width: 100px;
        height: 100px;
        border: 1px solid black;
        background-color: #cccccc;
        margin: auto;
        transition: all 1s linear;
    }

    #d1{ 
        background-color: rgba(255, 0, 0, 0.2);
    }
    #d1:hover {
        transform: skew(20deg);
    }

    #d2 {
        background-color: rgba(0, 255, 0, 0.2);
    }
    #d2:hover {
        transform: skew(0, 20deg);
        
    }
</style>
</head>
<body>
<div class="box100">
    <div class="box100" id="d1"></div>
</div>

<div class="box100">
    <div class="box100" id="d2"></div>
</div>
</body>
</html>